<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php echo $this->breadCrumbs();?>
  </div>
  
  <?php if (isset($error_warning)) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  
  <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/layout.png" alt="" /> <?php echo $_['heading_title']; ?></h1>
	  <div class="buttons">
		<a href="<?php echo UA('design/theme/browse', "theme={$theme}&path={$moveup_dir_path}"); ?>" class="button"><?php echo $_['button_up']; ?></a>
		<a href="<?php echo UA('design/theme');?>" class="button"><?php echo $_['button_cancel']?></a>
	  </div>
    </div>
	
    <div class="content">
      <h3><?php echo $current_dir_path;?></h3>
      <form action="" method="post" enctype="multipart/form-data" id="form">
        <table class="list">
          <thead>
            <tr>
              <td class="left"><?php echo $_['column_filename']; ?></td>
			  <td class="left"><?php echo $_['column_ext']; ?></td>
              <td class="right"><?php echo $_['column_action']; ?></td>
            </tr>
          </thead>
          <tbody>
            <?php if ($dir_list || $file_list) { ?>
            <?php foreach ($dir_list as $dir) { ?>
            <tr onmouseover="this.className='on';" onmouseout="this.className='';">
              <td class="left"><img src="view/image/filemanager/folder.png"> <a href="<?php echo UA('design/theme/browse', "theme={$theme}&path={$current_dir_path}{$dir}");?>"><?php echo $dir; ?></a></td>
			  <td class="left"></td>
			  <td class="left"></td>
            </tr>
            <?php } ?>
			<?php foreach ($file_list as $file) { ?>
            <tr onmouseover="this.className='on';" onmouseout="this.className='';">
              <td class="left"><img src="view/image/filemanager/file.png"> <a href="<?php echo $current_url . $file['filename']; ?>" target="_blank"><?php echo $file['filename']; ?></a></td>
			  <td class="left"><?php echo $file['ext'];?></td>
			  <td class="left">
			  <?php if ($file['editable']) { ?>
				[<a href="<?php echo UA('design/theme/fileedit', "theme={$theme}&path={$current_dir_path}&file={$file['filename']}"); ?>" target="_blank">
				<?php echo $_['text_edit']?>
				</a>]
			  <?php } ?></td>
            </tr>
            <?php } ?>
            <?php } else { ?>
            <tr>
              <td class="center" colspan="4"><?php echo $_['text_no_results']; ?></td>
            </tr>
            <?php } ?>
          </tbody>
        </table>
      </form>
    </div>
  </div>
</div>
<script>

</script>
<?php echo $footer; ?>